package com.shop.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Comments {
    //评论主键id
    private Long id;
    //被评论者id
    private long ownerId;
    //评论者id
    private long fromId;
    //评论者名称
    private String fromName;
    //评论者头像
    private String fromAvatar;
    //评论内容
    private String content;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

}
